import 'dart:convert';
/// deviceId : 23925
/// name : "新液冷测试从机"
/// masterSlaveMode : 1
/// connectStatus : 0
/// sysWorkMode : null
/// sysWorkStatus : null
/// isSelf : null
/// ipAddress : null
/// emsId : 23926
/// bmsId : 23928
/// systemWorkModelId : "systemOperatingMode"
/// systemWorkStatusId : "systemWorkingStatus"
/// socId : "SOC"
/// soc : null

EsgroupModel esgroupModelFromJson(String str) => EsgroupModel.fromJson(json.decode(str));
String esgroupModelToJson(EsgroupModel data) => json.encode(data.toJson());
class EsgroupModel {
  EsgroupModel({
      num? deviceId, 
      String? name, 
      num? masterSlaveMode, 
      num? connectStatus, 
      dynamic sysWorkMode, 
      dynamic sysWorkStatus, 
      dynamic isSelf, 
      dynamic ipAddress, 
      num? emsId, 
      num? bmsId, 
      String? systemWorkModelId, 
      String? systemWorkStatusId, 
      String? socId, 
      dynamic soc,}){
    _deviceId = deviceId;
    _name = name;
    _masterSlaveMode = masterSlaveMode;
    _connectStatus = connectStatus;
    _sysWorkMode = sysWorkMode;
    _sysWorkStatus = sysWorkStatus;
    _isSelf = isSelf;
    _ipAddress = ipAddress;
    _emsId = emsId;
    _bmsId = bmsId;
    _systemWorkModelId = systemWorkModelId;
    _systemWorkStatusId = systemWorkStatusId;
    _socId = socId;
    _soc = soc;
}

  EsgroupModel.fromJson(dynamic json) {
    _deviceId = json['deviceId'];
    _name = json['name'];
    _masterSlaveMode = json['masterSlaveMode'];
    _connectStatus = json['connectStatus'];
    _sysWorkMode = json['sysWorkMode'];
    _sysWorkStatus = json['sysWorkStatus'];
    _isSelf = json['isSelf'];
    _ipAddress = json['ipAddress'];
    _emsId = json['emsId'];
    _bmsId = json['bmsId'];
    _systemWorkModelId = json['systemWorkModelId'];
    _systemWorkStatusId = json['systemWorkStatusId'];
    _socId = json['socId'];
    _soc = json['soc'];
  }
  num? _deviceId;
  String? _name;
  num? _masterSlaveMode;
  num? _connectStatus;
  dynamic _sysWorkMode;
  dynamic _sysWorkStatus;
  dynamic _isSelf;
  dynamic _ipAddress;
  num? _emsId;
  num? _bmsId;
  String? _systemWorkModelId;
  String? _systemWorkStatusId;
  String? _socId;
  dynamic _soc;
EsgroupModel copyWith({  num? deviceId,
  String? name,
  num? masterSlaveMode,
  num? connectStatus,
  dynamic sysWorkMode,
  dynamic sysWorkStatus,
  dynamic isSelf,
  dynamic ipAddress,
  num? emsId,
  num? bmsId,
  String? systemWorkModelId,
  String? systemWorkStatusId,
  String? socId,
  dynamic soc,
}) => EsgroupModel(  deviceId: deviceId ?? _deviceId,
  name: name ?? _name,
  masterSlaveMode: masterSlaveMode ?? _masterSlaveMode,
  connectStatus: connectStatus ?? _connectStatus,
  sysWorkMode: sysWorkMode ?? _sysWorkMode,
  sysWorkStatus: sysWorkStatus ?? _sysWorkStatus,
  isSelf: isSelf ?? _isSelf,
  ipAddress: ipAddress ?? _ipAddress,
  emsId: emsId ?? _emsId,
  bmsId: bmsId ?? _bmsId,
  systemWorkModelId: systemWorkModelId ?? _systemWorkModelId,
  systemWorkStatusId: systemWorkStatusId ?? _systemWorkStatusId,
  socId: socId ?? _socId,
  soc: soc ?? _soc,
);
  num? get deviceId => _deviceId;
  String? get name => _name;
  num? get masterSlaveMode => _masterSlaveMode;
  num? get connectStatus => _connectStatus;
  dynamic get sysWorkMode => _sysWorkMode;
  dynamic get sysWorkStatus => _sysWorkStatus;
  dynamic get isSelf => _isSelf;
  dynamic get ipAddress => _ipAddress;
  num? get emsId => _emsId;
  num? get bmsId => _bmsId;
  String? get systemWorkModelId => _systemWorkModelId;
  String? get systemWorkStatusId => _systemWorkStatusId;
  String? get socId => _socId;
  dynamic get soc => _soc;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['deviceId'] = _deviceId;
    map['name'] = _name;
    map['masterSlaveMode'] = _masterSlaveMode;
    map['connectStatus'] = _connectStatus;
    map['sysWorkMode'] = _sysWorkMode;
    map['sysWorkStatus'] = _sysWorkStatus;
    map['isSelf'] = _isSelf;
    map['ipAddress'] = _ipAddress;
    map['emsId'] = _emsId;
    map['bmsId'] = _bmsId;
    map['systemWorkModelId'] = _systemWorkModelId;
    map['systemWorkStatusId'] = _systemWorkStatusId;
    map['socId'] = _socId;
    map['soc'] = _soc;
    return map;
  }

}